<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$spages= $pages->getsubPage();
 $divSub=" ";
if(count($spages)>0){
    for($i=0;$i<count($spages);$i++){
        $imagesSubs="";
        if(strlen($spages[$i]->picture)>3)
        $imagesSubs.="<img src='".$HOME_URL."resources/image.php?im=".$spages[$i]->picture."&s=150' title='".$spages[$i]->category."' alt='".$spages[$i]->category."' class='imgleft' />";

        $url =$spages[$i]->getURL() ;

        $divSub.="<div class='cat_list $listname'><a href='$url'>".$imagesSubs.
                "</a><h2><a href='".$url."' title='".$spages[$i]->category."' >".$spages[$i]->category."</a></h2>";
          $divSub.=" ".$spages[$i]->getPageExtraInfo().$spages[$i]->summary."
                <a href='".$url."' class='readmore' title='Read more about ".$spages[$i]->category."'>readmore</a>
         <div class='clear'></div></div>"
        ;
    }
}
echo "".$pageNav->getPageRange().$divSub. $pageNav->getNavigator();

?>
